<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!-- 新增学校信息页面 -->
<div class="pageContent">
	<form method="post" action="schoolAction!addSchool.action"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this,navTabAjaxDone)">
		<div class="pageFormContent" layoutH="56">
			<fieldset>
				<legend>基本信息</legend>
				<p>
					<label>学校名称</label><input name="hsSchoolInfo.sclName"
						class="required" type="text" value="" />
				</p>
				<p>
					<label>所属地区</label> <select name="hsSchoolInfo.areaCode"
						class="required combox">
						<option value="">请选择</option>
						<c:forEach items="${sysAreaList }" var="area">
							<option value="${area.areaCode }">${area.areaName }</option>
						</c:forEach>
					</select> <span class="req">*</span>
				</p>
				<p>
					<label>学校地址</label><input name="hsSchoolInfo.sclAddr" type="text"
						value="" />
				</p>
				<p>
					<label>联系电话</label><input class="phone"
						name="hsSchoolInfo.sclPhone" type="text" value="" /><span
						class="info">&nbsp;&nbsp;区号-尾号/手机号码</span>
				</p>
				<p>
					<label>学校联络人姓名</label><input name="hsSchoolInfo.sclLeaderName"
						type="text" value="" />
				</p>
				<p>
					<label>学校联络人电话</label><input class="phone"
						name="hsSchoolInfo.sclLeaderPhone" class="required" type="text"
						value="" /><span class="info">&nbsp;&nbsp;区号-尾号/手机号码</span>
				</p>
				<p>
					<label>信息状态标识</label> <select name="hsSchoolInfo.sclStatusFlag"
						class="combox">
						<option value="0">停用</option>
						<option value="1" selected="selected">正常</option>
					</select>
				</p>
				<p style="margin-bottom: 30px;">
					<label>学校简介</label>
					<textarea name="hsSchoolInfo.sclSummary" rows="2" cols="20"></textarea>
				</p>
			</fieldset>
			<p>
				<label>学校管理人员</label><select name="hsSchoolRelation.sclManagerId"
					class="required combox">
					<option value="">请选择</option>
					<c:forEach items="${sclManagerList}" var="sclManager">
						<option value="${sclManager.osuId }">${sclManager.osuName }</option>
					</c:forEach>
				</select><span class="req">*</span>
			</p>
			<p>
				<label>销售人员</label><select name="hsSchoolRelation.saleUserId"
					class="required combox">
					<option value="">请选择</option>
					<c:forEach items="${saleUserList}" var="saleUser">
						<option value="${saleUser.isuId }">${saleUser.isuName }</option>
					</c:forEach>
				</select> <span class="req">*</span>
			</p>
			<p>
				<label>客服人员</label> <select name="hsSchoolRelation.csUserId"
					class="required combox">
					<option value="">请选择</option>
					<c:forEach items="${csUserList}" var="csUser">
						<option value="${csUser.isuId }">${csUser.isuName }</option>
					</c:forEach>
				</select> <span class="req">*</span>
			</p>
			<p>
				<label>移动客户经理</label><select name="hsSchoolRelation.mobManagerId"
					class="required combox">
					<option value="">请选择</option>
					<c:forEach items="${mobManagerList}" var="mobManager">
						<option value="${mobManager.osuId }">${mobManager.osuName }</option>
					</c:forEach>
				</select> <span class="req">*</span>
			</p>
			<p>
				<label>结算方式</label><select name="hsSchoolRelation.balanceTypeFlag"
					class="required combox">
					<option value="">请选择</option>
					<c:forEach items="${balanceTypeFlagList}" var="balance">
						<option value="${balance.dicCode }">${balance.dicName }</option>
					</c:forEach>
				</select><span class="req">*</span>
			</p>
			<p>
				<label>激励方式</label> <select
					name="hsSchoolRelation.marketingTypeFlag" class="required combox"
					id="marketingTypeFlag">
					<option value="">请选择</option>
					<c:forEach items="${marketingTypeFlagList}" var="marketing">
						<option value="${marketing.dicCode }">${marketing.dicName }</option>
					</c:forEach>
				</select><span class="req">*</span>
			</p>
			<p>
				<label>发卡方</label><select name="hsSchoolRelation.cardIssusrFlag"
					class="required combox">
					<option value="0">第三方</option>
					<option value="1" selected="selected">我方</option>
				</select>
			</p>
			<p>
				<label>卡类型</label><select name="hsSchoolRelation.cardTypeFlag"
					class="required combox">
					<option value="0">M1卡</option>
					<option value="1" selected="selected">射频卡</option>
				</select><span class="info"></span>
			</p>
			<p>
				<label>卡预留扇区</label> <select class="combox"
					name="hsSchoolInfo.cardReservedArea">
					<c:forEach var="i" begin="0" end="15" step="1">
						<option value="${i}"
							<c:if test="${i==15 }">selected="selected"</c:if>>${i}</option>
					</c:forEach>
				</select><span class="info">卡预留扇区不会被加密，供其他厂商使用</span>
			</p>


			<p>
				<label>业务状态标识</label><select name="hsSchoolRelation.bizStatusFlag"
					class="required combox">
					<option value="0">停用</option>
					<option value="1" selected="selected">正常</option>
				</select>
			</p>

			<p>
				<label>发送邀请开关标志</label><select
					name="hsSchoolRelation.inviteLockFlag" class="required combox">
					<option value="0">不允许发送</option>
					<option value="1" selected="selected">允许发送</option>
				</select>
			</p>
			<p>
				<label>备注</label>
				<textarea name="hsSchoolRelation.remark" rows="2" cols="20"></textarea>
			</p>
			<p id="elseMarketing">
				<label>其他激励方式</label>
				<textarea rows="2" cols="20"
					name="hsSchoolRelation.marketingContent" id="marketingContent"></textarea>
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit" id="submit">保存</button>
						</div>
					</div></li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>
<script type="text/javascript">
	//其他激励方式lipengfei2014/7/8
	$().ready(function() {
		$("#elseMarketing").hide();
		$("#marketingTypeFlag").change(function() {
			var marketing = $("#marketingTypeFlag").val();
			if (marketing != 3) {
				$("#marketingContent").attr("value","").removeClass("required");
				$("#elseMarketing").hide();
			} else {
				$("#elseMarketing").show();
				$("#marketingContent").focus().attr("value","").addClass("required");
			}
		});

	});
</script>
<style type="text/css">
.pageFormContent p {
	width: 600px;
}

.req {
	color: red;
}
</style>